package com.dhecp.project.business.domain;

import java.util.Date;

import com.dhecp.core.domain.BaseBusinessEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 开票申请单 实体类
 * @author DH-lwl
 * @version 2020年1月6日
 */
public class StockInvoiceOutOrder extends BaseBusinessEntity {

	private static final long serialVersionUID = 1L;
	
	private Double gPrice;	//成本价
	private String bPID;	//客户BPID
    private String vAddress;//收票地址
    private String vMan;	//收票人
    private String vFax;	//传真
    private String vTel;	//收票电话
    private String vKhKhh;	//客户开户行
    private String vKhZh;	//客户账号
    private String vKhSh;	//客户税号
    private String vKpAddress;//开票地址
    private String vKpTel;	//开票电话
	private String vFpLx;	//发票类型编码
	private String gIDKP;	//开票型号
	private String gNameKP;	//开票名称
	private String htGuid;	//销售合同GUID
	private String htBid;	//销售合同单号
	private String vKhHth;	//客户合同号
	@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dKpRq;		//申请开票日期
	@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dJpRq;		//申请寄票日期
    private Double fXsFpsl;	//销售税率
    private Double fCgFpSl;	//采购税率
    private Double fSumje;	//开票金额
    private Double fWsDj;	//未税单价
    private Double fWsJe;	//未税金额
    private Double fSe;		//税额
    private Double fKpSl;	//开票数量（回填字段，不进行插入和更新操作）
    private Double fKpSl2;	//开票保存数量（回填字段，不进行插入和更新操作）
    //虚拟字段
    private String vFpLxName;//发票类型
    private Double fWkpSl;	//未开票数量
    private Boolean bbsp;	//开票申请标志
    
	public Double getgPrice() {
		if (gPrice == null) {
			return 0.0;
		}
		return gPrice;
	}
	public void setgPrice(Double gPrice) {
		this.gPrice = gPrice;
	}
	public String getbPID() {
		return bPID;
	}
	public void setbPID(String bPID) {
		this.bPID = bPID;
	}
	public String getvAddress() {
		return vAddress;
	}
	public void setvAddress(String vAddress) {
		this.vAddress = vAddress;
	}
	public String getvMan() {
		return vMan;
	}
	public void setvMan(String vMan) {
		this.vMan = vMan;
	}
	public String getvFax() {
		return vFax;
	}
	public void setvFax(String vFax) {
		this.vFax = vFax;
	}
	public String getvTel() {
		return vTel;
	}
	public void setvTel(String vTel) {
		this.vTel = vTel;
	}
	public String getvKhKhh() {
		return vKhKhh;
	}
	public void setvKhKhh(String vKhKhh) {
		this.vKhKhh = vKhKhh;
	}
	public String getvKhZh() {
		return vKhZh;
	}
	public void setvKhZh(String vKhZh) {
		this.vKhZh = vKhZh;
	}
	public String getvKhSh() {
		return vKhSh;
	}
	public void setvKhSh(String vKhSh) {
		this.vKhSh = vKhSh;
	}
	public String getvKpAddress() {
		return vKpAddress;
	}
	public void setvKpAddress(String vKpAddress) {
		this.vKpAddress = vKpAddress;
	}
	public String getvKpTel() {
		return vKpTel;
	}
	public void setvKpTel(String vKpTel) {
		this.vKpTel = vKpTel;
	}
	public String getvFpLx() {
		return vFpLx;
	}
	public void setvFpLx(String vFpLx) {
		this.vFpLx = vFpLx;
	}
	public String getgIDKP() {
		return gIDKP;
	}
	public void setgIDKP(String gIDKP) {
		this.gIDKP = gIDKP;
	}
	public String getgNameKP() {
		return gNameKP;
	}
	public void setgNameKP(String gNameKP) {
		this.gNameKP = gNameKP;
	}
	public String getHtGuid() {
		return htGuid;
	}
	public void setHtGuid(String htGuid) {
		this.htGuid = htGuid;
	}
	public String getHtBid() {
		return htBid;
	}
	public void setHtBid(String htBid) {
		this.htBid = htBid;
	}
	public String getvKhHth() {
		return vKhHth;
	}
	public void setvKhHth(String vKhHth) {
		this.vKhHth = vKhHth;
	}
	public Date getdKpRq() {
		return dKpRq;
	}
	public void setdKpRq(Date dKpRq) {
		this.dKpRq = dKpRq;
	}
	public Date getdJpRq() {
		return dJpRq;
	}
	public void setdJpRq(Date dJpRq) {
		this.dJpRq = dJpRq;
	}
	public Double getfXsFpsl() {
		if (fXsFpsl == null) {
			return 0.0;
		}
		return fXsFpsl;
	}
	public void setfXsFpsl(Double fXsFpsl) {
		this.fXsFpsl = fXsFpsl;
	}
	public Double getfCgFpSl() {
		if (fCgFpSl == null) {
			return 0.0;
		}
		return fCgFpSl;
	}
	public void setfCgFpSl(Double fCgFpSl) {
		this.fCgFpSl = fCgFpSl;
	}
	public Double getfSumje() {
		if (fSumje == null) {
			return 0.0;
		}
		return fSumje;
	}
	public void setfSumje(Double fSumje) {
		this.fSumje = fSumje;
	}
	public Double getfWsDj() {
		if (fWsDj == null) {
			return 0.0;
		}
		return fWsDj;
	}
	public void setfWsDj(Double fWsDj) {
		this.fWsDj = fWsDj;
	}
	public Double getfWsJe() {
		if (fWsJe == null) {
			return 0.0;
		}
		return fWsJe;
	}
	public void setfWsJe(Double fWsJe) {
		this.fWsJe = fWsJe;
	}
	public Double getfSe() {
		if (fSe == null) {
			return 0.0;
		}
		return fSe;
	}
	public void setfSe(Double fSe) {
		this.fSe = fSe;
	}
	public Double getfKpSl() {
		if (fKpSl == null) {
			return 0.0;
		}
		return fKpSl;
	}
	public void setfKpSl(Double fKpSl) {
		this.fKpSl = fKpSl;
	}
	public Double getfKpSl2() {
		if (fKpSl2 == null) {
			return 0.0;
		}
		return fKpSl2;
	}
	public void setfKpSl2(Double fKpSl2) {
		this.fKpSl2 = fKpSl2;
	}
	public String getvFpLxName() {
		return vFpLxName;
	}
	public void setvFpLxName(String vFpLxName) {
		this.vFpLxName = vFpLxName;
	}
	public Double getfWkpSl() {
		return fWkpSl;
	}
	public void setfWkpSl(Double fWkpSl) {
		this.fWkpSl = fWkpSl;
	}
	public Boolean getBbsp() {
		if (bbsp == null) {
			return false;
		}
		return bbsp;
	}
	public void setBbsp(Boolean bbsp) {
		this.bbsp = bbsp;
	}
	
}
